package autosimmune.agents.pathogens;

import repast.simphony.engine.schedule.ScheduledMethod;
import autosimmune.agents.Agent;
import autosimmune.agents.cells.Mastcell;
import autosimmune.defs.EnvParameters;
import autosimmune.env.Environment;
import autosimmune.env.Global;
import autosimmune.utils.Pattern;

public class Allergen extends Agent {
	
	private Pattern selfPattern;

	public Allergen(Environment z, int x, int y) {
		super(z, x, y);
		this.selfPattern=new Pattern(Global.getInstance().getStringParameter(EnvParameters.ALLERGEN_SELF_PATTERN));
	}
	
	@ScheduledMethod(start = 0, interval = 1)
	public void step(){
		this.tick();
		randomWalk(true);
	}
	
	public void link(Mastcell m){
		this.die();
	}
	
	public Pattern getPattern(){
		return this.selfPattern;
	}
	
	public void capturado(){
		this.die();
	}

}
